package com.check.dao.impl;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.check.dao.SysLogDao;
import com.check.pojo.PageObject;
import com.check.pojo.SysLog;

@Repository("sysLogDao")
public class SysLogDaoImpl  extends BaseSqlMapDao implements SysLogDao {

	public int findSysLogCount(Map map) {
		return ((Integer) getSqlMapClientTemplate().queryForObject("SysLog.findCountByPage",map)).intValue();
	}

	public List<SysLog> getAllSysLog(Map map) {
		return  this.getSqlMapClientTemplate().queryForList("SysLog.findSysLogByPage",map);

	}

	public void saveSysLog(SysLog sysLog) {
		this.insertObject("SysLog.insertSysLog", sysLog);
	}

	public void deleteSysLog(String id) {
		deleteObject("SysLog.deleteSysLog", id);
	}
	
	

}
